﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ServerList.aspx.cs" Inherits="Manage_Cms_ServerList" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" type="text/css" />
    <title>服务器列表</title>
</head>
<body>
<%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
<%=ManageHelper.PageErrMsg()!=""?"<div class='msg_failed'>"+ManageHelper.PageErrMsg()+"</div>":""%>
        <table width="95%" align="center" id="ddd">
            <tr>
                <td align="right">
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td>
                                <input type="button" name="AddChannel" value="添加服务器" onclick="ymPrompt.win('ServerItem.aspx',470,330,'添加服务器',null,null,null,true);"
                                    id="AddChannel" class="button" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
<div class="column">
    <div class="columntitle">管理服务器</div>
	<table cellspacing="0" cellpadding="0" rules="all" Align="center" border="0" id="MyDataGrid" style="border-width:0px;width:100%;border-collapse:collapse;">
	<tr class="summary-title" style="height:25px;">
		<td>&nbsp;&nbsp;服务器名称</td>
		<td>服务器IP</td>
		<td>服务器URL</td>
		<td>许可证号</td>
		<td>是否启用</td>
		<td>站点数</td>
		<td>排序</td>
		<td align="center">操作</td>
	</tr>
	<%
        foreach (KeRui.Model.CmsServer model in listCmsServer)
    {
	%>
	<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';" style="height:25px;">
		<td>&nbsp;&nbsp;<%=model.ServerName %></td>
		<td><%=model.ServerIP %></td>
		<td><%=model.ServerUrl %></td>
		<td><%=model.LicenseID %></td>
		<td><%=model.IsUsing.ToString().Replace("1","启用").Replace("0","<font style='color:red'>禁用</font>") %></td>
		<td><%=model.SiteNum %></td>
        <td ><%=model.OrderID %></td>
		<td align="center" style="width:80px;"><a href="JavaScript:ymPrompt.win('serveritem.aspx?act=edit&id=<%=model.ServerID %>',470,330,'修改服务器',null,null,null,true);">修改</a> | 
		<a href='serveritem.aspx?id=<%=model.ServerID %>&act=del' onClick="javascript:return confirm('此操作将会删除服务器“<%=model.ServerName %>”，确认吗？');">删除</a></td>
	</tr>
	<%
	} 
	%>
    </table>	
</div>
</body>
</html>
